home *** CD-ROM | disk | FTP | other *** search
/ The 640 MEG Shareware Studio 2 / The 640 Meg Shareware Studio CD-ROM Volume II (Data Express)(1993).ISO / utility / push.zip / PUSH.DOC next >
Text File  |  1991-08-03  |  3KB  |  66 lines

  1.                                     
  2.                                     
  3.                                     PUSH
  4.                                     ~~~~
  5.                                     
  6.                                      by
  7.  
  8.                                 Mark Thompson
  9.                               CaveWare Software
  10.  
  11.  
  12.      PUSH is a program to be used for "pushing" keys onto the keyboard
  13.      buffer.  This is useful for starting up programs which repetitively
  14.      require the same keystrokes upon startup.  Unfortunately, the maximum
  15.      number of keys that may be pushed into the keyboard buffer is 15, and
  16.      it is on a "first-in, first-out" basis, just as if you had typed the
  17.      keys yourself.
  18.  
  19.      An example batch file of this is:
  20.  
  21.                            PUSH abcd
  22.                            game.exe
  23.  
  24.      This batch file would first push the keys A, B, C, and D onto the
  25.      buffer, then run GAME.EXE.  When the game polls for keyboard input,
  26.      it would get ABCD, then any other keys after that, you would have to
  27.      type yourself (unlike piping(|) or re-routing(<>) input which expects 
  28.      ALL input to come from the re-routed input.)  The program will let you
  29.      know if the pushed keys had to be truncated.
  30.  
  31.      Some other keys which may be used from the command line are:
  32.  
  33.                   ~ = SPACE
  34.                   @ = Carriage Return
  35.                   ^ = Up arrow
  36.                   ! = Down arrow
  37.                   < = Left arrow
  38.                   > = Right arrow
  39.  
  40.      so a batch file that looked like this:
  41.  
  42.                         PUSH ~!<>^@
  43.                         game.exe
  44.  
  45.      would push onto the buffer a SPACE, Down cursor, Left cursor, Right
  46.      cursor, Up cursor, and an ENTER; then it would run GAME.
  47.  
  48.      If I'm not mistaken, SPACES are truncated from the end of the command
  49.      line, so if the last thing you need PUSH'ed onto the keyboard buffer is
  50.      a space, you should substitute a '~' instead.
  51.  
  52.      This program is guaranteed that it will take up drive space of about
  53.      22K or so, and THAT IS ALL.  It was written in the course of about 
  54.      30 programming minutes, so it's a "freebie" courtesy of myself on the
  55.      behalf of CaveWare Software.  If you find it useful and feel compelled
  56.      to tell me what you did with it or want to gimme some $$$ :) for it, 
  57.      send it to:         Mark Thompson
  58.                          Suite 135
  59.                          2256 Fellowship Rd.
  60.                          Tucker, GA  30084
  61.  
  62.      If you have ideas on other CaveWare products that might be useful, but
  63.      you don't have the programming knowledge to implement it, send your
  64.      phone #/address to the above address.  If we find it could be useful
  65.      to more people than you/us, we just might be able to work out something.
  66.